import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:search_people/entrance/route/routes.dart';
import 'package:search_people/value/topcolors.dart';

import '../logic.dart';

class HomeSearchItemWidget extends StatelessWidget {
  HomeSearchItemWidget({Key? key}) : super(key: key);
  final logic = Get.find<HomeLogic>();
  @override
  Widget build(BuildContext context) {
    return Hero(tag: 'search', child: Container(
      padding: EdgeInsets.symmetric(horizontal: 30.r, vertical: 15.r),


      child: InkWell(
        key: logic.state.intro.keys[0],
        onTap: (){
          Get.toNamed(RouterPath.search_page);
        },
        child: Container(
          height: 50.r,
          alignment: Alignment.centerLeft,
          padding: EdgeInsets.symmetric(horizontal: 10.r),
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(4.r),
            color: Colors.white,
          ),
          child: Text(
            '您可以输入领导姓名、认知区域、职位等',
            style: TextStyle(
              color: TopColors.black_99,
              fontSize: 12.sp,
            ),
          ),
        ),
      ),
    ));
  }
}
